<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>


<script type="text/javascript">


  function opzioni(cellvalue, options, rowObject )
  {
    return "<a href='updateForm.action?id="+rowObject.id+"' ><img src='../images/pencil.png' alt='Modifica' title='Modifica' border='0' /></a>";
  }
  
  //-->
</script>

<s:push value="model">

<s:url id="urlListProdotti" action="listProdottiFiorista" namespace="/fiorista">
 <s:param name="idFiorista" value="%{idFiorista}"></s:param>
</s:url>
<s:url id="urlAddProdotto" action="addProdottoAction" namespace="/fiorista" >
 <s:param name="idFiorista" value="%{idFiorista}"></s:param>
</s:url>
 
<div class="post">
<h2 class="title"><s:text name="sidebar.prodotti"></s:text> </h2>
<p class="meta">Utente : <s:property value="ragioneSociale" /></p>
  <div style="clear: both;">&nbsp;</div>
  <div class="entry">
	<sjg:grid id="gridFiori"
	        dataType="json"
	        href="%{urlListProdotti}"
	        pager="false"
	        gridModel="listProdotti">
	        <sjg:gridColumn name="prodotto.id" title="" key="true" hidden="true"  />
	        <sjg:gridColumn name="prodotto.nome" title="Nome" />
	        <sjg:gridColumn name="quantita" title="Quantita" />
	        <sjg:gridColumn name="prezzo" title="Prezzo" width="15" />
	        <sjg:gridColumn name="dataInserimento" title="Data Creazione" />
	        <sjg:gridColumn name="options" title="" formatter="opzioni" width="35"/>
	    </sjg:grid>
	</s:push>
<div style="clear: both;">&nbsp;</div>
<s:a href="%{urlAddProdotto}" ><img src="../images/add.png"  border="0"/></s:a>
</div>
</div>

<div id="dialogModifica"></div>


 
